/**
 * 
 */
package hu.gbalage.owlforms.impl;

import java.net.URI;

import org.semanticweb.owl.model.OWLClass;

import hu.gbalage.owlforms.OWLFormsManager;
import hu.gbalage.owlforms.api.Form;
import hu.gbalage.owlforms.api.OWLFormsFactory;

/**
 * @author Grill Balazs (balage.g@gmail.com)
 *
 */
public class OWLFormsFactoryImpl implements OWLFormsFactory {

	private OWLFormsManager manager;
	
	public OWLFormsFactoryImpl(OWLFormsManager manager){
		this.manager = manager;
	}

	/* (non-Javadoc)
	 * @see hu.gbalage.owlforms.api.OWLFormsFactory#createForm(java.net.URI)
	 */
	public Form createForm(URI source) {
		OWLClass baseclass = manager.getDataFactory().getOWLClass(source);
		return new FormImpl(manager,baseclass);
	}

}
